<?php
defined('IN_ADMIN') or exit('No permission resources.');
$show_dialog = $show_header = 1;
include $this->admin_tpl('header_v2.0', 'admin');
?>
<div id="content">
    <div class="row">
        <article id="widget-grid" class="col-xs-12 col-sm-12 col-md-12 col-lg-12">
             <div class="jarviswidget jarviswidget-color-darken" id="register_member_<?php echo $_GET['menuid']?>" data-widget-editbutton="false"data-widget-togglebutton="false"  data-widget-deletebutton="false" data-widget-fullscreenbutton="false">
                <header>
                      <span class="widget-icon"> <i class="fa fa-table txt-color-white"></i> </span>
                     <h2>用户管理</h2>
                </header>
                <div>
                    <div class="widget-body no-padding">
                        <div class="widget-body-toolbar">
                            <form name="searchform" action="" method="get" >
                                <input type="hidden" value="shuafen" name="m"/>
                                <input type="hidden" value="member_enter" name="c"/>
                                <input type="hidden" value="register_member" name="a"/>
                                <input type="hidden" value="" name=""/>
                                <div class="row mb10">
                                    <div class="col-sm-2 ">
                                        手机号：<input name="username" type="text" value="<?php echo $tel; ?>" class="input-text form-control" />
                                    </div>
                                    <div class="col-sm-2 ">
                                        用户类型: <?php echo form::select($this->type, $type, 'name=type class="form-control"');?>
                                    </div>
                                    <div class="col-sm-2 ">
                                        &nbsp;<br>
                                        <button type="submit" name="search"  class="btn btn-primary"> <i class="fa fa-search"></i> 搜索</button>
                                    </div>
                                </div>
                            </form>
                        </div>

                        <form name="myform" id="myform" action="?m=shuafen&c=space&a=delete" method="post" class="form-horizontal">
                            <div class ="table-content">
                                <table width="100%" cellspacing="0" class="table  pinned table-bordered  table-striped table-condensed ">
                                    <thead>
                                        <tr>
										    <th>序号</th>
										    <th>用户名(手机)</th>
										    <th>昵称</th>
											<th>性别</th>
											<th>可用余额</th>
											<th>省份</th>
											<th>城市</th>
                                            <th>是否vip</th>
                                            <th>是否svip</th>
                                            <th>是否被加好友</th>
                                            <th>被加剩余次数</th>
                                            <th>普通下载次数</th>
                                            <th>精确下载次数</th>
                                            <th>点击被加好友的次数</th>
                                            <th>密保问题</th>
                                            <th>密保答案</th>
<!--											<th width="100">--><?php //echo L('operations_manage')?><!--</th>-->
                                        </tr>
                                    </thead>
                                </table>
                                <table width="100%" cellspacing="0" class="table table-bordered  table-striped table-condensed table-hover">
                                    <thead>
                                        <tr>
								            <th>序号</th>
								            <th>用户名(手机)</th>
								            <th>昵称</th>
											<th>性别</th>
                                            <th>可用余额</th>
                                            <th>省份</th>
                                            <th>城市</th>
											<th>是否vip</th>
											<th>是否svip</th>
                                            <th>是否被加好友</th>
                                            <th>被加剩余次数</th>
                                            <th>普通下载次数</th>
                                            <th>精确下载次数</th>
                                            <th>点击被加好友的次数</th>
                                            <th>密保问题</th>
                                            <th>密保答案</th>
<!--											<th width="100">--><?php //echo L('operations_manage')?><!--</th>-->
										</tr>
                                    </thead>
                                    <tbody>
                                        <?php 
                                            if(is_array($infos)){
                                                foreach($infos as  $k=>$info){
                                        ?>
                                    <tr>
										<td><?php echo $k+1?></td>
										<td><?php echo $info['username']?></td>
										<td><?php echo $info['nickname']?></td>
										<td><?php echo $sex[$info['sex']]?></td>
										<td><?php echo $info['amount']  ?></td>
										<td><?php echo $info['province']  ?></td>
										<td><?php echo $info['city']  ?></td>
                                        <td><?php echo $is_vip[$info['vip']]  ?></td>
                                        <td><?php echo $is_vip[$info['svip']]  ?></td>
                                        <td><?php echo $is_vip[$info['add_user']]  ?></td>
                                        <td><?php echo $info['add_times']  ?></td>
                                        <td><?php echo $info['down_times']  ?></td>
                                        <td><?php echo $info['exact_times']  ?></td>
                                        <td><?php echo $info['click_add_times']  ?></td>
                                        <td><?php echo $info['security_question']  ?></td>
                                        <td><?php echo $info['security_answer']  ?></td>
<!--                                        <td>-->
<!--                                            <div class="btn-group">-->
<!--                                                <a class="btn bg-color-blueDark txt-color-white  " href="index.php?m=shuafen&c=index&a=add_carousel&action=edit&id=--><?php //echo $info['id']?><!--&menuid=--><?php //echo $_GET['menuid']?><!--&pc_hash=--><?php //echo $_SESSION['pc_hash']?><!--" >-->
<!--                                                    <i class="fa fa-info"></i> --><?php //echo  L('edit')?>
<!--                                                </a>-->
<!--                                                <button class="btn btn-danger dropdown-toggle" data-toggle="dropdown">-->
<!--                                                    <span class="caret"></span>-->
<!--                                                </button>-->
<!--                                                <ul class="dropdown-menu">-->
<!--                                                    <li>-->
<!--                                                        <a href="javascript:void(0);" class="mode-alert" data-title="删除！" data-msg="确认是否删除" data-href="?m=shuafen&c=index&a=delete_carousel&id=--><?php //echo $info['id']?><!--&pc_hash=--><?php //echo $_SESSION['pc_hash']?><!--"><i class="fa fa-trash-o"></i> 删除</a>-->
<!--                                                    </li>-->
<!---->
<!--                                                </ul>-->
<!--                                            </div>-->
<!--                                        </td>-->
                                    </tr>  
                                        <?php
                                        }
                                    }
                                    ?>
                                    </tbody>
                                </table>

                               <div class="widget-footer">
                                 <div id="pages"><?php echo $pages;?></div>

                                </div>
                            </div>
                        </form>
                    </div>
				</div>
             </div>
        </article>
    </div>
</div>

<!-- <div class="subnav">
    <div class="content-menu ib-a blue line-x">
	</div>
</div>
<div class="pad-lr-10">
<form name="myform" action="?m=shuafen&c=space&a=delete" method="post" id="myform">
<div class="table-list">
    <table width="100%" cellspacing="0">
        <thead>
            <tr>
            <th width="6%" align="center">序号</th>
            <th width="12%" align="center">用户名(手机)</th>
            <th width="12%" align="center">昵称</th>
			<th width="12%" align="center">性别</th>
			<th width="10%" align="center">是否置顶</th>
			<th width="20%" align="center"><?php echo L('operations_manage')?></th>
            </tr>
        </thead>
    <tbody>
 <?php
if(is_array($infos)){
	foreach($infos as $k=>$info){
?>
	<tr>
		<td width="6%"  align="center"><?php echo $k+1?></td>
		<td width="12%"  align="center"><?php echo $info['username']?></td>
		<td width="12%"  align="center"><?php echo $info['nickname']?></td>
		<td width="6%"  align="center"><?php echo $sex[$info['sex']]?></td>
		<td width="10%" align="center"><?php echo $top[$info['svip_top']]  ?></td>
		<td width="20%" align="center">
			<?php if($info['svip_top'] == 0){ ?>
				<a href='?m=shuafen&c=exact_find&a=top_svip_member&userid=<?php echo $info['userid']?>' onClick="return confirm('<?php echo L('top', array('message' => addslashes(new_html_special_chars($info['username']))))?>')"><?php echo L('置顶')?></a>
			<?php }else{ ?>
				<a href='?m=shuafen&c=exact_find&a=top_svip_member&action=cancel_top&userid=<?php echo $info['userid']?>' onClick="return confirm('<?php echo L('cancel_top', array('message' => addslashes(new_html_special_chars($info['username']))))?>')"><?php echo L('取消置顶')?></a>
			<?php } ?>
		</td>
	</tr>
<?php
	}
}
?>
</tbody>
    </table>
 <div id="pages"><?php echo $pages?></div>
</form>
</div> -->
</body>
</html>